package com.example.clxy.dao;

import com.example.clxy.entity.Specialty;
import com.example.clxy.result.WebRestResult;
import com.example.clxy.result.business.PageResult.SpecialtyPageResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SpecialtyMapper {
    int deleteByPrimaryKey(String specialtyid);

    int insert(Specialty record);

    int insertSelective(Specialty record);

    Specialty selectByPrimaryKey(String specialtyid);

    int updateByPrimaryKeySelective(Specialty record);

    int updateByPrimaryKey(Specialty record);

    List<SpecialtyPageResult> getSpecialtybyname(@Param("specialtyname") String specialtyname,
                                                 @Param("begin")int begin,
                                                 @Param("end")int end,
                                                 @Param("pagesize")int pagesize);

    List<SpecialtyPageResult> getSpecialtybyid(@Param("specialtyid") String specialtyid,
                                                 @Param("begin")int begin,
                                                 @Param("end")int end,
                                                 @Param("pagesize")int pagesize);

    int deleteByid(String specialtyid);

    int SpecialtybindWlclass(@Param("specialtyid") String specialtyid,
                             @Param("wlclassid") String wlclassid);

    int SpecialtyUnbindWlclass(String specialtyid);

    int WlclassUnbindSpecialty(String wlclassid);
}